from PIL import Image

def make_thumb(img_path, size=(80, 60)):
    pix = Image.open(img_path).convert('RGB')
    pix.thumbnail(size)
    return pix

if __name__ == '__main__':
    img_path = '星辰变.jpg'
    pix = make_thumb(img_path)
    pix.save(img_path.replace('.jpg', '_thumb.jpg'))